package com.wdb007.venus.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = {})
@EnableScheduling
@ImportResource({ "classpath:applicationContext.xml" })
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class BootQuartzApiStart {
	private final static Logger logger = LoggerFactory.getLogger(BootQuartzApiStart.class);

	public static void main(String[] args) throws InterruptedException {
		long start = System.currentTimeMillis();
		new SpringApplicationBuilder().sources(BootQuartzApiStart.class).web(true) // 开启web服务
				.run(args);
		long end = System.currentTimeMillis();

		logger.info("venus-quartz启动成功,耗时：{} ms", end - start);
	}
	
	
}
